* coding.c (DECODE_COMPOSITION_RULE): If the rule is invalid, goto invalid_code
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 06:41:53 +0000 (23:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 06:41:53 +0000 (23:41 -0700)
commit42b7724ff85b0fd203f6e0a9ae3e09d6b6ad9ca3
tree41b7a51643553da28026f8308d4c363bdf9840b0
parent2a90aa190d3969b310d8ec9958352cd9f1c1000a
* coding.c (DECODE_COMPOSITION_RULE): If the rule is invalid, goto invalid_code

directly, rather than having caller test rule sign.  This avoids
some unnecessary tests.
* composite.h (COMPOSITION_ENCODE_RULE_VALID): New macro.
(COMPOSITION_ENCODE_RULE): Arguments now must be valid.  This
affects only one use, in DECODE_COMPOSITION_RULE, which is changed.
src/ChangeLog
src/coding.c
src/composite.h